$OpenBSD: patch-cddl_usr_bin_ctfconvert_Makefile,v 1.2 2016/10/21 12:51:55 jca Exp $
--- cddl/usr.bin/ctfconvert/Makefile.orig	Wed Aug 31 14:24:43 2016
+++ cddl/usr.bin/ctfconvert/Makefile	Fri Oct 21 14:46:07 2016
@@ -35,8 +35,10 @@ CFLAGS+=	-I${.CURDIR}/../../../sys/cddl/compat/opensol
 		-I${OPENSOLARIS_USR_DISTDIR}/tools/ctf/common \
 		-I${OPENSOLARIS_USR_DISTDIR}/tools/ctf/cvt \
 		-I${OPENSOLARIS_SYS_DISTDIR}/uts/common \
-		-I/usr/local/include/elftoolchain
+		-I${LOCALBASE}/include/ \
+		-I${LOCALBASE}/include/libelf \
+		-I${LOCALBASE}/include/libdwarf
 
-LDADD=		-L/usr/local/lib/elftoolchain -ldwarf -lelf -lz -lpthread
+LDADD=		-L${LOCALBASE}/lib/ -ldwarf -lelf -lz -lpthread
 
 .include <bsd.prog.mk>
